package ece.pdx.finalproject.roleplay;
import android.support.v4.app.ListFragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class TabsPagerAdapter extends FragmentPagerAdapter {

	public TabsPagerAdapter(FragmentManager fm) {
		super(fm);
	}

	@Override
	public ListFragment getItem(int index) {

		switch (index) {
		case 0:
			// All Tasks
			return new AllFragment();
		case 1:
			return new UrgentFragment();
		case 2:
			return new ImportantFragment();
		case 3:
		
			// Work Fragment
			return new WorkFragment();
		
		case 4:
			// Family Fragment
			return new FamilyFragment();
		case 5:
			//Friend Fragment
			return new FriendFragment();
		
		}

		return null;
	}

	@Override
	public int getCount() {
		// get item count - equal to number of tabs
		return 6;
	}

}

